package com.cxl.ext;



public class text01 {
    public static void main(String[] args) {
        A a = new A(2);
     //   B b = new B(3);

    }
}
 class A extends B{
    public A(int i) {
        super(i);
    }

    @Override
    public void AA() {
        System.out.println("A类被调用");
    }
}
abstract class C extends B{
    public C(int i) {
        super(i);
    }

    @Override
    public void AA() {
        System.out.println("C抽象类被调用");
    }
}
abstract class B{
    private int i;
    public abstract void AA();
    private void aa(){
        System.out.println(i);
    }

    public B(int i) {
        this.i = i;
    }
}
